package com.practise.beanconf.annotation.controller;

import com.practise.beanconf.annotation.model.PeopleConfig;
import com.practise.beanconf.annotation.model.User;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanAnnt {
    @Bean
    @ConfigurationProperties(prefix = "user.config")
    public User getPeopleConfig(){
        return new User();
    }
}

